package com.wzh.service;

import com.wzh.dao.Titledao;
import com.wzh.pojo.Po.Title;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class Titleser {
	@Autowired
	private Titledao titledao;
	public List<Title> get(){
		return titledao.getAll();
	};
	public boolean delete(Title title){
		return titledao.deonebyid(title)>0;
	}
	public boolean add(Title title){
		return titledao.addnew(title)>0;
	}
}
